package com.gitee.huanminabc.utils_tools.web_base.config;

import com.gitee.huanminabc.nullchain.common.NullResult;
import com.gitee.huanminabc.utils_tools.log_extend.LogTraceContextHolder;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author huanmin
 * @date 2024/2/28
 */
@Configuration
@ComponentScan("com.gitee.huanminabc.utils_tools.web_base")//扫描包
public class WebBaseInitConfig {
    static {
        //设置链路id的获取方法
        NullResult.TRACE_ID_FUN= LogTraceContextHolder::get;
    }
}
